<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class SShareLog extends Model
{

    public $table = "s_share_log";

    protected $fillable = [
        'user_id', 'info_type', 'info_id', 'share_type','created_at', 'updated_at'
    ];

    public function user()
    {
        return $this->belongsTo('App\User', 'user_id');
    }


    public function cloudLesson()
    {
        return $this->belongsTo('App\Models\SCloudLessonInfo', 'info_id');
    }
}
